/**
 * Created by zengy on 2017/9/4.
 */
var http = HttpRequest.prototype;
//获取套餐列表
http.getChannelManagerList =function (params,cb) {
    var opts = {
        url : baseUrl + '/channelManager/getChannelManagerList ',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts);
};
//请设置要开通的服务包项目
http.setOpenService =function (params,cb) {
    var opts = {
        url : baseUrl + '/channelManager/setOpenService',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts);
};

//取消授权（禁止）
http.forbidService =function (params,cb) {
    var opts = {
        url : baseUrl + '/channelManager/forbidService ',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts);
};
//审核
http.openService =function (params,cb) {
    var opts = {
        url : baseUrl + '/channelManager/openService  ',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts);
};
//添加渠道二维码
http.addChannel =function (params,cb) {
    var opts = {
        url : baseUrl + '/channelManager/addChannel',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts);
};
//获取服务包信息
http.queryGoodsList =function (cb) {
    var opts = {
        url : baseUrl + '/channelManager/getGoodsList',
    };
    this.baseRequest(cb,opts);
};